package nongchang.kuaijiecaifu.com.ncapp_android.ui;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import nongchang.kuaijiecaifu.com.ncapp_android.R;
import nongchang.kuaijiecaifu.com.ncapp_android.common.activity.BaseActivity;
import nongchang.kuaijiecaifu.com.ncapp_android.ui.adapter.UserQuestionListAdapter;

public class UserQuestionActivity extends BaseActivity {
    String[] content;
    @BindView(R.id.list)
    RecyclerView list;
    private UserQuestionListAdapter adapter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_question);
        ButterKnife.bind(this);
        adapter=new UserQuestionListAdapter(this);
        list.setAdapter(adapter);
        content = getResources().getStringArray(R.array.kjlife_quetion);

        List<String> list=new ArrayList<>();
        for(int i=0;i<content.length;i++){
            list.add(content[i]);
        }
        adapter.update(list);
    }

    @OnClick({R.id.btn_back})
    void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_back:
                finish();
                break;
        }
    }
}
